<%@page import="java.util.Map"%>
<%@page import="org.proddevplm.constants.ControllerConstants"%>
<html>
<head>  
	<link type="text/css" href="javascript/css/smoothness/jquery-ui-1.8.7.custom.css" rel="stylesheet" />	

	<script type="text/javascript" src="javascript/js/jquery-1.4.4.min.js"></script>
	
	<script type="text/javascript" src="javascript/proddevutil.js"></script>

	<script type="text/javascript" src="javascript/js/jquery-ui-1.8.7.custom.min.js"></script>
	
	<script type="text/javascript" src="javascript/js/tablesorter.min.js"></script>
		
	<script type="text/javascript" src="javascript/js/tablesorter.pager.js"></script>
		
	<script type="text/javascript" src="javascript/js/tablesorter_filter.js"></script>
				 
	<script type="text/javascript" src="javascript/js/jquery.scroll-follow.js"></script>
	
	<script src="javascript/dia/jquery.json-2.2.min.js" type="text/javascript"></script>
		
	<link type="text/css" href="javascript/css/tablesorter/style.css" rel="stylesheet" />
	<link type="text/css" href="javascript/css/resourcesMenu/resourcesMenu.css" rel="stylesheet" />
	<link type="text/css" href="style/proddevplm.css" rel="stylesheet" />
</head>

<body >
   
	<div id="allContent" style="width:95%; margin-left:auto; margin-right:auto">       
        <%
        Map stateMap = (Map)session.getAttribute(ControllerConstants.STATE_MAP);
        String currentTab = (String)session.getAttribute("currentTab");
        
        if(stateMap == null) {%>
        	<jsp:include page="startPage.jsp"></jsp:include>	
        <%} else {
	        	String nextPage = (String)stateMap.get(ControllerConstants.NEXT_PAGE);
	        	if (nextPage==null) {
	            	session.invalidate();
	            	response.sendRedirect("/proddev/pages/index.jsp");
	        	}
	        	if(nextPage!="startPage.jsp") {%>
	        		<jsp:include page="header.jsp"></jsp:include>
	        	<%} %>
	        	
	        	<jsp:include page="<%=nextPage%>"></jsp:include>
	        	
	        	
	        	<%if (nextPage!="startPage.jsp") {%>
	        		<hr />
		        	<div style="text-align:center; font-style:italic; font-size:small;">&#169; Cristian Codre. All rights reserved</div>
		     	<%}
	        }%>
	        
	</div>
</body>
</html>